//package com.example.controller;
//
//import com.example.dto.LoginResponse;
//import com.example.service.UserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/api/v1/auth")
public class UserController {
//
//    @Autowired
//    private UserService userService;
//
//    // 登录接口
//    @PostMapping("/login")
//    public LoginResponse login(@RequestParam("username") String username, @RequestParam("password") String password) {
//        // 调用服务进行认证
//        String token = userService.authenticate(username, password);
//
//        // 返回响应，包含access_token和token_type
//        return new LoginResponse(token, "bearer");
//    }
}
//
